package com.arron.tomcat.connector1.http;

import java.util.Hashtable;

public class StringManager {


    String packageName;


    private static Hashtable managers = new Hashtable();

    /**
     * 获取特定包的StringManager。如果managers中已经存在，它将被重用，否则将创建并返回一个新的StringManager。
     */
    public synchronized static StringManager getManager(String packageName) {
        StringManager mgr = (StringManager) managers.get(packageName);
        if (mgr == null) {
            mgr = new StringManager(packageName);
            managers.put(packageName, mgr);
        }
        return mgr;
    }


    public StringManager(String packageName) {
        this.packageName = packageName;
    }

    /**
     *   根据错误吗获取错误提示信息
     * @param packageName
     * @return
     */
    public String getString(String packageName) {
        return "";
    }


}
